<p>
  hero-detail works!
</p>
<div *ngIf="hero">
  <input [(ngModel)]="hero.name" placeholder="name" />
  <button (click)="save()" class="btn btn-primary">保存并返回</button>
</div>
